{% extends "base.html" %}
{% block content %}
<h1>最近留言</h1>
{% if notes %}
{% for note in notes %}
<div class="item">
<div class="item_title">
<h3>{{note.title}}</h3>
</div>
<div class="item_content">
	{{note.content}}	
</div>
<div class="item_info">
<p>	{{note.nickname}} 
	发表于 {{note.datetime|timesince}} 前
</p>
</div>
</div>
{% endfor %}
{% else %}
<div class="item_none">
<p>当前没有留言</p>
</div>
{% endif %}

<form action="" method="post">
	<div class="form">
		{{ form.as_p }}		
	</div>
	<div class="form_button">
	<input type="submit" value="提交">
	<input type="reset" value="重置">
	</div>
</form>
{% endblock %}